home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / SurfacePlugin.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  1.5 KB  |  62 lines

  1. //-----------------------------------------------------------------------------
  2. //
  3. // $LogFile$
  4. // $Revision: 1.1.1.4 $
  5. // $Author: ttimo $
  6. // $Date: 2000/01/18 00:18:14 $
  7. // $Log: SurfacePlugin.cpp,v $
  8. // Revision 1.1.1.4  2000/01/18 00:18:14  ttimo
  9. // merging in for RC
  10. //
  11. // Revision 1.3  2000/01/17 23:53:43  TBesset
  12. // ready for merge in sourceforge (RC candidate)
  13. //
  14. // Revision 1.2  2000/01/07 16:40:12  TBesset
  15. // merged from BSP frontend
  16. //
  17. // Revision 1.1.1.3  1999/12/29 18:31:46  TBesset
  18. // Q3Radiant public version
  19. //
  20. // Revision 1.1.1.1.2.1  1999/12/29 21:39:42  TBesset
  21. // updated to update3 from Robert
  22. //
  23. // Revision 1.1.1.3  1999/12/29 18:31:46  TBesset
  24. // Q3Radiant public version
  25. // Revision 1.1.1.3  1999/12/29 18:31:46  TBesset
  26. // Q3Radiant public version
  27. //
  28. // Revision 1.1  1999/12/02 16:11:05  Timo & Christine
  29. // commit before e-brain dump
  30. // TexTool v1.1 support
  31. //
  32. //
  33. //
  34. // DESCRIPTION:
  35. // implementation of isurfaceplugin-interface specifics
  36. //++timo FIXME: all the patch related stuff needs moving to qerplugin.h
  37.  
  38. #include "stdafx.h"
  39.  
  40. void WINAPI QERApp_GetTwoSelectedPatch( patchMesh_t **p1, patchMesh_t **p2 )
  41. {
  42.     *p1 = NULL; *p2 = NULL;
  43.     for (brush_t *pb = selected_brushes.next ; pb != &selected_brushes ; pb = pb->next)
  44.     {
  45.         if (pb->patchBrush)
  46.         {
  47.             if (!(*p1))
  48.                 *p1 = pb->pPatch;
  49.             else if (!(*p2))
  50.             {
  51.                 *p2 = pb->pPatch;
  52.                 return;
  53.             }
  54.         }
  55.     }
  56. #ifdef _DEBUG
  57.     Sys_Printf("WARNING: QERApp_GetTwoSelectedPatch failed (did not find two patches)\n");
  58. #endif
  59.     return;
  60.     
  61. }
  62.